const rules = {
  // ：品牌
  brand: [
    { max: 10, message: '请输入品牌', trigger: 'blur' },
    { required: true, message: '请输入品牌', trigger: 'blur' }
  ],
  // 类型
  type: [{ required: true, message: '请输入类型', trigger: 'blur' }],
  card_time: [{ required: true, message: '请选择日期', trigger: 'blur' }],
  //里程
  mile: [
    { required: true, message: '请输入里程', trigger: 'blur' },
    { type: 'number', message: '请输入行驶里程', trigger: 'blur' }
  ],
  // 价格
  price: [
    {
      pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
      message: '请输入正确价格',
      trigger: 'blur'
    },
    { required: true, message: '请输入价格', trigger: 'blur' }
  ],
  // 排量
  displacement: [{ required: true, message: '请输入排量', trigger: 'blur' }],
  // 排放标准
  emission_standard: [{ required: true, message: '请输入排放标准', trigger: 'blur' }],
  // ：变速
  gearbox: [{ required: true, message: '请输入变速箱', trigger: 'blur' }],
  // 转手次数
  transfer_times: [{ type: 'number', message: '请输入转手次数', trigger: 'blur' }],
  //座位数
  seats: [
    { type: 'number', message: '请输入座位数', trigger: 'blur' },
    { required: true, message: '请输入座位数', trigger: 'blur' }
  ],
  // 城市
  city_name: [{ required: true, message: '请输入车辆城市', trigger: 'blur' }] ,
  //类型
  model: [{ required: true, message: '请输入车辆类型', trigger: 'blur' }] ,
  // ：事故情况
  accident_situation: [{ required: true, message: '请输入车辆事故情况', trigger: 'blur' }] ,
  // ：其他
  other: [{ required: true, message: '请输入车辆说明', trigger: 'blur' }] ,
}
export default rules
